package com.phoenix.service.impl;

import com.phoenix.entity.GroupChampionship;
import com.phoenix.mapper.GroupChampionshipMapper;
import com.phoenix.service.GroupChampionshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GroupChampionshipServiceImpl implements GroupChampionshipService {
    @Autowired
    GroupChampionshipMapper groupChampionshipMapper;

    @Override
    public Boolean addGroupChampionship(GroupChampionship groupChampionship) {
        return groupChampionshipMapper.addGroupChampionship(groupChampionship);
    }

    @Override
    public Boolean groupChampionshipDelete(List<String> idList) {
        return groupChampionshipMapper.groupChampionshipDelete(idList);
    }

    @Override
    public Boolean groupChampionshipDeleteSingle(String id) {
        return groupChampionshipMapper.groupChampionshipDeleteSingle(id);
    }

    @Override
    public List<GroupChampionship> selectNSearch(Map<String, Object> search) {
        return groupChampionshipMapper.selectNSearch(search);
    }

    @Override
    public List<GroupChampionship> selectNSearchForUser(Map<String, Object> search) {
        return groupChampionshipMapper.selectNSearchForUser(search);
    }

    @Override
    public GroupChampionship getGroupChampionshipByID(Integer ID) {
        return groupChampionshipMapper.getGroupChampionshipByID(ID);
    }

    @Override
    public Boolean updateGroupChampionship(GroupChampionship groupChampionship) {
        return groupChampionshipMapper.updateGroupChampionship(groupChampionship);
    }
}
